home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-12-07 | 1.3 KB | 47 lines | [TEXT/EDIT] |
- cat delta-sound.hqx
- Date: Sat, 4 Nov 89 13:58:00 EET
- From: Juri Munkki <jmunkki@hut.fi>
- To: info-mac@sumex-aim.stanford.edu
-
- The following file contains the Think C 3.0 source code for
- the Delta Sound conversion utility. After processing with
- Delta Sound, a sound file will usually compress to a smaller
- size with the Huffman (and often LZW) compression algorithm.
-
- This program does not reduce the amount of information in the
- file and the process is fully reversible. The source code is
- included so that interested people can improve it for their
- own purposes.
-
- What does the application do?
-
- 1) Start with Old=128.
- 2) Read a byte into New.
- 3) Write Old-New.
- 4) Old=New
- 5) Go to step 2 if there is more data.
-
- To reverse the process:
-
- 1) Start with Old=128.
- 2) Read a byte into New.
- 3) Old=Old-New
- 4) Write Old
- 5) Go to step 2 if there is more data.
-
- As you can see, the amount of information does not change.
- The resource fork is left intact. This means that it is not
- useful to try to use this program on files that have the
- sounds in the resource fork. A separate resource converter
- could be written.
-
- This process will usually save an additional 20% in your
- archives. The amount saved depends on the file, but higher
- sampling rates usually save more space.
-
- Juri Munkki
- jmunkki@hut.fi
- jmunkki@kampi.hut.fi
- jmunkki@fingate.bitnet
-
-